package sys_enum

// 系统-权限类型
type sysPermissionType int

var SysPermissionType sysPermissionType

// API
func (c *sysPermissionType) API() int {
	return 1
}

func (c *sysPermissionType) ToText(value int) string {
	switch value {

	case 1:
		return "API"

	}
	return ""
}

func (c *sysPermissionType) ToValue(text string) int {
	switch text {

	case "API":
		return 1

	}
	return 0
}
